package edu.lsnu.equipment_management_system.mapper.update;

import edu.lsnu.equipment_management_system.pojo.vo.sql_conditions.PasswordAndUserNoVo;
import org.apache.ibatis.annotations.Update;

/**
 * @author mzy
 * @Description 管理员和用户修改密码
 * @date 2018/11/19
 */
public interface ChangePasswordMapper {
    /**
     * @Description 传入password和equipmentNo修改密码
     * @author mzy
     * @time 2018-11-21
     * @see
     * @return   int
     * @params  [passwordAndEquipmentNoVo]
     */
    @Update("update YHB set YHB.MD5 = #{password} " +
            "where YHB.ZGH = #{userNo}")
    int changePassword(PasswordAndUserNoVo passwordAndUserNoVo);

}
